home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
util
/
pack
/
xfh132.lzh
/
XFH
/
src
/
libmygcc
/
gen_library
/
Makefile
< prev
Wrap
Makefile
|
1993-01-17
|
603b
|
32 lines
# Makefile using BMake and GCC.
CC = gcc
DEBUG =
DEF =
#OPT =
OPT = -O2 -fomit-frame-pointer -funroll-loops
INC = -Igcc:os-include/include/ -I../
CFLAGS = $(DEBUG) $(OPT) $(INC) $(DEF)
OBJECTS = ctype_.o globals.o
# This needs to be a macro since bmake doesn't gronk the '='.
FIXCTYPE = -D_ctype_=_ctype_array
all: $(OBJECTS)
# Hack to avoid shared-lib _ctype_ table (#ifdef KERNEL stuff).
ctype_.o: ctype_.c
$(CC) -c $(FIXCTYPE) $(CFLAGS) $*.c
.c.o:
$(CC) -c $(CFLAGS) $*.c
.s.o:
copy $*.s x.c
gcc -traditional -E x.c -o x.s
gcc -c $(CFLAGS) x.s -o <file>.o
.SUFFIXES: .c .s .o